//
//  XQBindAccountHeaderView.m
//  JoinPeso
//
//  Created by 小琦 on 2024/11/27.
//

#import "XQBindAccountHeaderView.h"

@interface XQBindAccountHeaderView()
@property (nonatomic,strong) XQCustomEngeLabel *topLabel;
@end

@implementation XQBindAccountHeaderView

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self makeUI];
        [self makeConstraints];
    }
    return self;
}

- (void)makeUI {
    [self addSubview:self.topLabel];
}

- (void)makeConstraints {
    [self.topLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(@20);
        make.left.right.equalTo(@0);
        make.height.mas_equalTo(90);
    }];
}

#pragma mark - lazy


- (XQCustomEngeLabel *)topLabel {
    if (!_topLabel) {
        _topLabel = [XQCustomEngeLabel new];
        _topLabel.text = @"Only the following repayment methods \naresupported please do not trust other \n unofficiarepayment channels";
        _topLabel.edgtInsets = UIEdgeInsetsMake(12, 6, 12, 6);
        _topLabel.numberOfLines = 0;
        _topLabel.textColor = [UIColor whiteColor];
        _topLabel.font = [UIFont systemFontOfSize:16];
        _topLabel.backgroundColor = kOrangeColor;
        _topLabel.layer.cornerRadius = 15;
        _topLabel.layer.masksToBounds = YES;
        _topLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _topLabel;
}

@end
